<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Session 函数</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="session.security.ini.html">« 和会话安全相关的配置项</a></li>
      <li style="float: right;"><a href="function.session-abort.html">session_abort »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.session.html">Sessions</a></li>
    <li>Session 函数</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="ref.session" class="reference">
 <h1 class="title">Session 函数</h1>

 






























































































































































































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="function.session-abort.html">session_abort</a> — Discard session array changes and finish session</li><li><a href="function.session-cache-expire.html">session_cache_expire</a> — 返回当前缓存的到期时间</li><li><a href="function.session-cache-limiter.html">session_cache_limiter</a> — 读取/设置缓存限制器</li><li><a href="function.session-commit.html">session_commit</a> — session_write_close 的别名</li><li><a href="function.session-create-id.html">session_create_id</a> — Create new session id</li><li><a href="function.session-decode.html">session_decode</a> — 解码会话数据</li><li><a href="function.session-destroy.html">session_destroy</a> — 销毁一个会话中的全部数据</li><li><a href="function.session-encode.html">session_encode</a> — 将当前会话数据编码为一个字符串</li><li><a href="function.session-gc.html">session_gc</a> — Perform session data garbage collection</li><li><a href="function.session-get-cookie-params.html">session_get_cookie_params</a> — 获取会话 cookie 参数</li><li><a href="function.session-id.html">session_id</a> — 获取/设置当前会话 ID</li><li><a href="function.session-module-name.html">session_module_name</a> — 获取/设置会话模块名称</li><li><a href="function.session-name.html">session_name</a> — 读取/设置会话名称</li><li><a href="function.session-regenerate-id.html">session_regenerate_id</a> — 使用新生成的会话 ID 更新现有会话 ID</li><li><a href="function.session-register-shutdown.html">session_register_shutdown</a> — 关闭会话</li><li><a href="function.session-reset.html">session_reset</a> — Re-initialize session array with original values</li><li><a href="function.session-save-path.html">session_save_path</a> — 读取/设置当前会话的保存路径</li><li><a href="function.session-set-cookie-params.html">session_set_cookie_params</a> — 设置会话 cookie 参数</li><li><a href="function.session-set-save-handler.html">session_set_save_handler</a> — 设置用户自定义会话存储函数</li><li><a href="function.session-start.html">session_start</a> — 启动新会话或者重用现有会话</li><li><a href="function.session-status.html">session_status</a> — 返回当前会话状态</li><li><a href="function.session-unset.html">session_unset</a> — 释放所有的会话变量</li><li><a href="function.session-write-close.html">session_write_close</a> — Write session data and end session</li></ul>
</div>
</div></div></body></html>